package com.hmys.api.service.impl;

import com.hmys.api.mapper.WebHelpFindHouseMapper;
import com.hmys.api.model.WebHelpFindHouse;
import com.hmys.api.service.WebHelpFindHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by chen365 on 2018/04/11.
 */
@Service
public class WebHelpFindHouseServiceImpl implements WebHelpFindHouseService {
    @Autowired
    private WebHelpFindHouseMapper webHelpFindHouseMapper;

    @Override
    public int insert(WebHelpFindHouse record) {
        record.setCreateTime(new Date());
        record.setStatus(true);
        record.setIsView(false);
        return webHelpFindHouseMapper.insertSelective(record);
    }
}
